//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.web.controller.app;

import com.ruoyi.live.app.service.GameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.io.UnsupportedEncodingException;

@Controller
@RequestMapping({"/open/game"})
public class GameController {
    @Autowired
    GameService service;

    public GameController() {
    }

    @RequestMapping({"/index"})
    public ModelAndView index(String data) throws UnsupportedEncodingException {
        String token = this.service.getToken(data);
        return (new ModelAndView("/game/index")).addObject("token", token);
    }
}
